import WaterfallFlowComponent from './WaterfallFlowComponent/Index.vue'
// 将来如果有其它组件,都可以写到这个数组里
const coms = [WaterfallFlowComponent];

const install = function (Vue) {
    console.log(install.installed, "install.installed");
    if (install.installed) return;
    install.installed = true;
    coms.forEach(com => {
        console.log(com.name, "com");
        Vue.component(com.name, com);
    })
}
// 判断是否直接引入文件，如果是，就不用调用Vue.use()
if (typeof window !== 'undefined' && window.Vue) {
    window.Vue.use(install)
}

export default install
